﻿using System;
using System.Data;

namespace Tilver.Data
{
    
    /// <summary>
    /// IDataReader到实体类的映射接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IRowMapper<T>
    {
        /// <summary>
        /// 实现IDataReader到实体类的映射
        /// </summary>
        /// <param name="reader">IdataReader对象</param>
        /// <returns></returns>
        T MapRow(IDataReader reader);
    }
}
